package com.gouda.core.entity;

import lombok.Data;
import org.amethyst.atlas.basic.entity.MagicDBEntity;
import org.amethyst.atlas.basic.meta.Column;
import org.amethyst.atlas.basic.meta.PrimaryKey;
import org.amethyst.atlas.basic.meta.Table;

import java.io.Serializable;
import java.util.Date;

/**
 * 商户
 * Created by KGL on 2015/12/2.
 */
@Data
@Table(tableName = "merchant")
public class MerchantEntity extends MagicDBEntity<MerchantEntity> implements Serializable {

    private static final long serialVersionUID = 4665959143432283899L;
    @PrimaryKey
    private long id;
    @Column
    private String incCode;
    @Column
    private String incName;
    @Column
    private String address;
    @Column
    private String contacts;
    @Column
    private String contactsPhone;
    @Column
    private String licensePid;
    @Column
    private String housePid;
    @Column
    private String idCodePid;
    /** register step: 1.merchant admin alter password, 2.fill merchant info, 3.bind bank card, 4.auditing, 5.complete means login succeed */
    @Column
    private int registerStep;
    @Column
    private int state;
    @Column
    private Date createTime;
}
